<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): CPTAnnotation Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_annotation.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Instance Methods</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">CPTAnnotation Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTAnnotation" --><!-- doxytag: inherits="NSObject,NSCoding-p-p" -->
<p>An annotation positions a content layer relative to some anchor point.  
 <a href="interface_c_p_t_annotation.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTAnnotation:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_annotation__inherit__graph.png" border="0" usemap="#_c_p_t_annotation_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_annotation_inherit__map" id="_c_p_t_annotation_inherit__map">
<area shape="rect" id="node9" href="interface_c_p_t_layer_annotation.html" title="Positions a content layer relative to an anchor point in a reference layer." alt="" coords="5,246,157,277"/><area shape="rect" id="node11" href="interface_c_p_t_plot_space_annotation.html" title="Positions a content layer relative to some anchor point in a plot space." alt="" coords="181,246,360,277"/><area shape="rect" id="node2" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="73,86,153,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="54,6,172,37"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="178,86,299,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTAnnotation:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_annotation__coll__graph.png" border="0" usemap="#_c_p_t_annotation_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_annotation_coll__map" id="_c_p_t_annotation_coll__map">
<area shape="rect" id="node2" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_annotation-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_annotation.html#a58d3fabc850353e8e386af2d835eade2">positionContentLayer</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Positions the content layer relative to its reference anchor.  <a href="#a58d3fabc850353e8e386af2d835eade2"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35ddaccd1e42239cf3330a40a40351ca"></a><!-- doxytag: member="CPTAnnotation::contentLayer" ref="a35ddaccd1e42239cf3330a40a40351ca" args="" -->
<a class="el" href="interface_c_p_t_layer.html">CPTLayer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_annotation.html#a35ddaccd1e42239cf3330a40a40351ca">contentLayer</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The annotation content. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2be3639d925dde2778126fcf6ad6151"></a><!-- doxytag: member="CPTAnnotation::annotationHostLayer" ref="ad2be3639d925dde2778126fcf6ad6151" args="" -->
<a class="el" href="_c_p_t_definitions_8h.html#abd26af4304957387867e6e9e8cef1576">__cpt_weak</a> <a class="el" href="interface_c_p_t_annotation_host_layer.html">CPTAnnotationHostLayer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_annotation.html#ad2be3639d925dde2778126fcf6ad6151">annotationHostLayer</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The host layer for the annotation content. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a486e3fd34c652c6c61f330ae3085df4e"></a><!-- doxytag: member="CPTAnnotation::contentAnchorPoint" ref="a486e3fd34c652c6c61f330ae3085df4e" args="" -->
<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_annotation.html#a486e3fd34c652c6c61f330ae3085df4e">contentAnchorPoint</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The anchor point for the content layer. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adeacb87b3d5285b69e3d9d0ef66c49c1"></a><!-- doxytag: member="CPTAnnotation::displacement" ref="adeacb87b3d5285b69e3d9d0ef66c49c1" args="" -->
<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_annotation.html#adeacb87b3d5285b69e3d9d0ef66c49c1">displacement</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The displacement from the layer anchor point. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86f7661eed5afb57595138db89f8c1e9"></a><!-- doxytag: member="CPTAnnotation::rotation" ref="a86f7661eed5afb57595138db89f8c1e9" args="" -->
CGFloat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_annotation.html#a86f7661eed5afb57595138db89f8c1e9">rotation</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The rotation of the label in radians. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An annotation positions a content layer relative to some anchor point. </p>
<p>Annotations can be used to add text or images that are anchored to a feature of a graph. For example, the graph title is an annotation anchored to the graph. The annotation content layer can be any <a class="el" href="interface_c_p_t_layer.html" title="Base class for all Core Animation layers in Core Plot.">CPTLayer</a>. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="a58d3fabc850353e8e386af2d835eade2"></a><!-- doxytag: member="CPTAnnotation::positionContentLayer" ref="a58d3fabc850353e8e386af2d835eade2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) <a class="el" href="interface_c_p_t_annotation.html#a58d3fabc850353e8e386af2d835eade2">positionContentLayer</a> </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Positions the content layer relative to its reference anchor. </p>
<p>This method must be overridden by subclasses. The default implementation does nothing. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_annotation_8h_source.html">CPTAnnotation.h</a></li>
<li>Source/CPTAnnotation.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_annotation.html">CPTAnnotation</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
